# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

from scrapy.item import Item, Field

# item that contains one line of search result
class SearchLineItem(Item):
	title = Field()
	link = Field()

# item that represents social community
class CommunityItem(Item):
    title = Field()
    link = Field()
    desc = Field()
    member_count = Field()
    post_count = Field()

# item that represents post in social community
class PostItem(CommunityItem):
    desc = Field()
    like_count = Field()
    share_count = Field()
    def __init__(self, comItem):
        CommunityItem.__init__(self)
        #comItem = comItem

